namespace WorkManagerSystem.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class modifiedBase : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Grades", "DelTime", c => c.DateTime());
            AddColumn("dbo.Students", "DelTime", c => c.DateTime());
            AddColumn("dbo.Subjects", "DelTime", c => c.DateTime());
            AlterColumn("dbo.Grades", "CreateTime", c => c.DateTime());
            AlterColumn("dbo.Students", "CreateTime", c => c.DateTime());
            AlterColumn("dbo.Subjects", "CreateTime", c => c.DateTime());
            DropColumn("dbo.Grades", "DateTime");
            DropColumn("dbo.Students", "DateTime");
            DropColumn("dbo.Subjects", "DateTime");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Subjects", "DateTime", c => c.DateTime(nullable: false));
            AddColumn("dbo.Students", "DateTime", c => c.DateTime(nullable: false));
            AddColumn("dbo.Grades", "DateTime", c => c.DateTime(nullable: false));
            AlterColumn("dbo.Subjects", "CreateTime", c => c.DateTime(nullable: false));
            AlterColumn("dbo.Students", "CreateTime", c => c.DateTime(nullable: false));
            AlterColumn("dbo.Grades", "CreateTime", c => c.DateTime(nullable: false));
            DropColumn("dbo.Subjects", "DelTime");
            DropColumn("dbo.Students", "DelTime");
            DropColumn("dbo.Grades", "DelTime");
        }
    }
}
